package com.vogue.supplymall.entmanagement.controller;

import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.vogue.supplymall.entmanagement.domain.service.LicenceApplyService;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import com.vogue.supplymall.common.domain.dto.SearchInfo;

@Validated
@RestController
public class LicenceApplyController extends BaseController{
	@Resource
	private LicenceApplyService licenceApplyService;
	
	/**
	 * 根据syscodeId找到证照上传申请审核记录表的信息
	 */
	@RequestMapping(value = "/ns/{appver}/entmanagement/notLicenceShop", method = RequestMethod.POST)
	public ResponseEntity<List<Map<String, Object>>> findLABySyscodeid(HttpServletRequest request,HttpServletResponse response,@RequestBody SearchInfo searchInfo) {
	
		List<Map<String, Object>> list=licenceApplyService.findLABySyscodeid(searchInfo);
		
		return new ResponseEntity<List<Map<String, Object>>>(list, HttpStatus.OK);
	}
}
